'use strict';

module.exports = app => {
  const { router, controller } = app;
  router.post('/api/login', controller.user.doLogin);
  router.post('/api/logout', controller.user.doLogout);
  router.get('/api/info', controller.user.getInfo);
  router.post('/api/user/add', controller.user.create);
  router.get('/api/user/list', controller.user.list);
}
